<?php
/**
 * Created by PhpStorm
 * User: whh
 * Date: 2022/7/23
 * Time: 11:53
 */

namespace app\common\model;

use think\Model;

class NovelLabel extends Model
{
    use Common;

    protected $table = 'novel_label';


    /**
     * 标签
     * @return \think\model\relation\BelongsToMany
     */
    public function novels()
    {
        return $this->belongsToMany(Novel::class, NovelToLabelAccess::class, 'novel_id', 'label_id')->field("id,title");
    }


}